package com.lin.spzx.manager.service;


import com.github.pagehelper.PageInfo;
import com.lin.spzx.model.dto.system.AssginRoleDto;
import com.lin.spzx.model.dto.system.LoginDto;
import com.lin.spzx.model.dto.system.SysUserDto;
import com.lin.spzx.model.entity.system.SysUser;
import com.lin.spzx.model.vo.system.LoginVo;

public interface SysUserService {
    //1
   LoginVo login(LoginDto loginDto);
   //2
   SysUser getUserInfo(String token);
   //3
    void logout(String token);

    //用户分页数据
    PageInfo<SysUser> findByPage(SysUserDto sysUserDto, Integer pageNum, Integer pageSize);

    //保存用户
    void saveSysUser(SysUser sysUser);

    //修改用户
    void updateSysUser(SysUser sysUser);

    void deleteById(Long userId);

     //用户分配橘色，报春分配数据
      void doAssign(AssginRoleDto assginRoleDto);
}
